#include <QObject>

class MyIterator : public QObject
{
    Q_OBJECT;
    Q_PROPERTY(double MyDouble READ MyDouble WRITE SetMyDouble NOTIFY sigMyDouble);
    Q_PROPERTY(int MyInt READ MyInt WRITE SetMyInt NOTIFY sigMyInt);

public:
    MyIterator(QObject *parent = nullptr);

public:
    double MyDouble() const;

    int MyInt() const;

signals:
    bool sigMyInt();
    bool sigMyDouble();

    // pass value
    bool sigMyOpacity(double);

public slots:

    void SetMyDouble(double iValue);

    void SetMyInt(int iValue);

private:
    int m_MyInt;
    double m_MyDouble;
};
